cmdline: Fatally error if the timestamp in a commit is invalid
authorColin Walters <walters@verbum.org>
Fri, 4 Dec 2015 16:14:25 +0000 (11:14 -0500)
committerColin Walters <walters@verbum.org>
Fri, 4 Dec 2015 16:26:07 +0000 (11:26 -0500)
commit8ba90a33410c9707a30a77f808a7ec712d465165
tree2d23fe3e25cc5e1b73987047c7d364b712e7cea5
parentf88a9733ce85f105ea23b3fc6af03fb83b1be273
cmdline: Fatally error if the timestamp in a commit is invalid

Previously we were just ignoring this, which hid a bug in
an earlier commit that generated them.

Also change the `commit` program to use both APIs - this
involves extra code, but not too much.

This way, reverting the fix with this on top caused the test suite to
fail.  Adding an active test for this would need a custom test program
using the C API, or adding a cmdline flag to the client, neither of
which quite seemed worth it.
src/ostree/ot-builtin-commit.c
src/ostree/ot-dump.c